/*The test file of my List operation*/

#include "syscall.h"
#include "user.h"


struct myList testList;
void main(void) {
	int i = 1;
	int j = 2;
	int k = 3;
	int l = 4;
	int* result = NULL;
	int final = -1;
	
	
	
	initialList (&testList, 10); 
	
	appendList (&testList, (void*)(&i));
	
	appendList (&testList, (void*)(&j));

	appendList (&testList, (void*)(&k));
	
	result = (int*) removeList (&testList);
	final = *result;
	Printf("The first is %d\n", final);
	result = (int*) removeList (&testList);
	final = *result;
	Printf("The second is %d\n", final);
	

	appendList (&testList, (void*)(&l));
	
	result = (int*) removeList (&testList);
	final = *result;
	Printf("The third is %d\n", final);
	
	result = (int*) removeList (&testList);
	final = *result;
	Printf("The fourth is %d\n", final);
	
	Printf("This is the end\n");


	
	


}